`plugin: meson` no longer functional for Rust on `base:` < `core22` "Could not find an implementation of tomllib, nor toml2json"
Metadata
Current evaluation
No evaluation has been recorded for this issue yet.
Issue body
Trying to rebuild a `base: core20` snap using `plugin: meson`, I now get:
```
$ snapcraft --debug
Launching a VM.
cSkipping pull anon-shm-preload (already ran)
Skipping pull fonts (already ran)
Skipping pull libfeedback (already ran)
Skipping pull recipe-version (already ran)
Skipping pull squeekboard-patches (already ran)
Skipping pull squeekboard (already ran)
'gtk-prep' has dependencies that need to be staged: squeekboard
Skipping pull squeekboard (already ran)
Building squeekboard
+ snapcraftctl build
+ /usr/bin/python3 -m pip install -U meson
Requirement already up-to-date: meson in /usr/local/lib/python3.8/dist-packages (1.5.1)
+ '[' '!' -f build.ninja ']'
+ meson --prefix /usr -Dstrict=false -Dbuildtype=release /root/parts/squeekboard/src/
The Meson build system
Version: 1.5.1
Source dir: /root/parts/squeekboard/src
Build dir: /root/parts/squeekboard/build
Build type: native build
../src/meson.build:1:0: ERROR: Could not find an implementation of tomllib, nor toml2json
```
Meson 1.5.0 added a dependency on TOML parsing to support Cargo.toml:
https://mesonbuild.com/Release-notes-for-1-5-0.html
There are a couple possible workarounds:
- `python3 -m pip -U install tomli` before `snapcraftctl build`
- set `meson-version: 1.4.2` for the part
Evaluation history
No evaluation history available.